package modele;

import java.util.Collection;
import java.util.TreeSet;

public class Dep implements Comparable<Dep> {
    private String num;
    private Collection<Med> lesMeds = new TreeSet<Med>();
    
    public Dep(String num) {
        this.num = num;
    }
    public void addMed(Med med) {
        lesMeds.add(med);
    }
    public String getNum() {
        return num;
    }
    public Collection<Med> getLesMeds() {
        return lesMeds;
    }
    @Override
    public int compareTo(Dep d) {
        return num.compareTo(d.num);
    }
}